Resource Protection using Atomics: Patterns and Verifications
نویسندگان
چکیده
Modular reasoning about non-blocking concurrent data structures is crucial to establish the correctness of concurrent applications. To achieve this, specifications of the synchronization mechanisms used by these nonblocking concurrent classes to prevent concurrent access to shared data, are essential. This paper presents an approach to specifying such lock-free synchronization mechanisms in terms of the thread’s role and permissions. The approach is formalized in a specification for the AtomicInteger class from the java.util.concurrent library, using abstract predicates and permission-based concurrent Separation Logic. The specification is set up to capture different synchronization patterns, both cooperative and competitive. We illustrate the use of the patterns in three case studies, where for each case study we verify that it indeed correctly synchronizes access to the protected data.
منابع مشابه
Resource Protection Using Atomics - Patterns and Verification
For the verification of concurrent programs, it is essential to be able to show that synchronisation mechanisms are implemented correctly. A common way to implement such sychronisers is by using atomic operations. This paper identifies what different synchronisation patterns can be implemented by using atomic read, write and compare-and-set operation. Additionally, this paper proposes also a sp...
متن کاملComparative Study between Electronic Portal Imaging Device (EPID) and Cone Beam Computed Tomography (CBCT) for Radiation Treatment Verifications
Introduction: Electronic Portal Imaging Device (EPID) and Cone Beam Computed Tomography (CBCT) are the preferred tools of Image Guided Radiotherapy (IGRT) and Dose Guided Radiotherapy (DGRT) which have been used for Radiotherapy treatment verifications. As a result, the number of publications dealing with these two tools for radiation treatment verification has increased consi...
متن کاملIdentifying Managers’ Mental Patterns in Relation to Subjective Well-being of Human Resource of Organization, Using the Q-method
Intorduction: It is necessary to notice the subjective well-being and satisfaction of human resources in organizations and lack of attention to them has deleterious effects on individual and organizational performance. Method: The present study is a mixed (qualitative and quantitative) research which used the Q approach to examine and explain managers’ mental patterns regarding Subjective We...
متن کاملIdentifying Managers’ Mental Patterns in Relation to Subjective Well-being of Human Resource of Organization, Using the Q-method
Intorduction: It is necessary to notice the subjective well-being and satisfaction of human resources in organizations and lack of attention to them has deleterious effects on individual and organizational performance. Method: The present study is a mixed (qualitative and quantitative) research which used the Q approach to examine and explain managers’ mental patterns regarding Subjective We...
متن کاملA New Two Dimensional Model for Pollutant Transport in Ajichai River
Accurate prediction of pollution control and environmental protection need a good understanding of pollutant dynamics. Numerical model techniques are important apparatus in this research area. So a 2500 line FORTRAN 95 version code was conducted in which using approximate Riemann solver, couples the shallow water and pollution transport agents in two dimensions by the aid of unstructured meshes...
متن کامل